﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace CS322_V6
{
    public partial class DoWhileForma : Form
    {
        public DoWhileForma()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int brojac = 0; 
           
            do
            {
                brojac++;
                Thread.Sleep(1000);

            }
            while (brojac < 5);

            MessageBox.Show("Proteklo je " + brojac + " sekundi.");
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
